﻿namespace N2.Workflow.Items
{
	using Definitions;
	using N2.Edit.Trash;
	using Persistence;
	
	/// <summary>
	/// Holds a collection of bindings between Workflows and Content Items.
	/// Also, Workflows can be stored here.
	/// This item is created automatically when first accessed through IWorkflowProvider service.
	/// </summary>
	[Disable, NotThrowable, NotVersionable]
	[ItemAuthorizedRoles(Roles = new string[0])]
	[Definition("Workflow Repository", "WorkflowRepository")]
	public class WorkflowRepository: ItemContainer<WorkflowBinding>
	{
		public override string IconUrl { get { return Constants.IconPath + "workflow_folder.png"; } }

		public override bool IsPage { get { return false; } }
	}
}
